package com.bookstore.bauhinia.user.service;

import com.bookstore.bauhinia.pojo.User;

import java.util.List;

/**
 * @author lzo
 */

public interface UserService {
    /**
     * 往数据库插入一本书
     * @see User
     * @param record
     * @return 数字大于0则创建成功
     */
    int insert(User record);
    User selectByPrimaryKey(Integer id);
    int deleteByPrimaryKey(Integer id);
    int updateByPrimaryKey(User record);
    List<User> getAllUsers();
}